﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace PlaceOrder_Core.PlaceOrderModels;

[Table("trade_simulation_users")]
public partial class TradeSimulationUser
{
    [Column("id")]
    public int Id { get; set; }

    [Column("user_id")]
    public int UserId { get; set; }

    [Column("max_profit")]
    public decimal? MaxProfit { get; set; }

    [Column("max_loss")]
    public decimal? MaxLoss { get; set; }

    [Column("activated")]
    public bool Activated { get; set; }

    [Column("allowed_max_open")]
    public int? AllowedMaxOpen { get; set; }

    [Column("allowed_max_loss")]
    public int? AllowedMaxLoss { get; set; }

    [Column("daily_close_loss")]
    public int? DailyCloseLoss { get; set; }

    [Column("user_status")]
    public short? UserStatus { get; set; }

    [Column("disable_start_date")]
    public DateTime? DisableStartDate { get; set; }

    [Column("daily_draw_down")]
    public decimal? DailyDrawDown { get; set; }

    [Column("draw_down_date")]
    public DateOnly? DrawDownDate { get; set; }

    [Column("user_privilege")]
    public short? UserPrivilege { get; set; }

    [NotMapped]
    public int TotalAllowedMaxOpen { get; set; }

    [NotMapped]
    public int TotalAllowedSingleOpen { get; set; }

    [NotMapped]
    public decimal AllowedDailyLoss { get; set; }
    [NotMapped]
    public decimal AllowedTotalLoss { get; set; }
}
